//
//  HomeViewController.m
//  bblib_Example
//
//  Created by yhbj on 2019/1/11.
//  Copyright © 2019 yhbj. All rights reserved.
//

#import "HomeViewController.h"
#import "NSBundle+wgSubBundle.h"
#import "HomeView.h"
@interface HomeViewController ()

@end

@implementation HomeViewController
-(instancetype)init{
    
    self = [super initWithNibName:@"HomeViewController" bundle:[NSBundle wg_subBundleWithBundleName:@"bblib" targetClass:[self class]]];
    
    if (self){
//        self.view.backgroundColor = [UIColor whiteColor];
    }
    return self;
}
- (IBAction)addXibView:(UIButton *)sender {
    NSBundle *app = [NSBundle wg_subBundleWithBundleName:@"bblib" targetClass:[self class]];
    HomeView *cc = [app loadNibNamed:@"HomeView" owner:self options:nil].lastObject;
    [self.view addSubview:cc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    self.ttLabel.text = self.contentStr;
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
